import fetch from '../assets/js/fetch'

const urlPrefix = '/manager/management/categories'

export const getCategoriesByParent = (parentId) => fetch('GET', `${urlPrefix}/parent`, {
  parentId,
})